3
3
.
.
2
2
.
.
3
3
E
E
d
d
i
i
t
t
V
V
i
i
e
e
w
w
P
P
r
r
o
o
p
p
e
e
r
r
t
t
i
i
e
e
s
s
I
I
n
n
f
f
o
o
This tutorial shows how to edit properties of a View.
In this tutorial we will change color of a Text Label to Red.
View properties can be configured in following ways (changes are automatically reflected in all places)
directly inside Code .foregroundColor(Color.red)
through Attributes Inspectors Color: Red
through Popup inside Automatic Preview Command + Click - Show SwiftUI Inspector
Edit View Properties
ContentView.swift
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Text("Hello World!")
.foregroundColor(Color.red)
}
}
}
I
I
n
n
f
f
o
o
.background(Image("Background"), alinment: .center)
Doesn’t se file name
Text, Font
Shadow
.shadow
.foregroundColor
iosfonts.com
.font(Arial Rounded MT Bold)
P
P
a
a
d
d
d
d
i
i
n
n
g
g
HStack.padding(.bottom, 20)